home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource2 / sclib_2 / 2_6 / v6n6088d.txt < prev    next >
Text File  |  1995-11-01  |  267b  |  11 lines

  1.  \NLETTER\6.6\CURVES4.PRGProgram 4
  2.  
  3.     r = y1; s = 0.5;
  4.     for (xi=x1; xi<=x2; xi++)
  5.     {
  6.         plot(xi,r);
  7.         if(s+m>=1)
  8.             { r++; s += (m-1); }
  9.         else s += m;
  10.     }
  11.